package com.ruoyi.dynamic.service;


import com.baomidou.mybatisplus.extension.service.IService;
import com.ruoyi.dynamic.model.pojo.entity.RoomInteract;
import com.ruoyi.dynamic.model.pojo.request.app.AppRoomInteractAddRequest;
import com.ruoyi.dynamic.model.pojo.request.app.AppRoomUserSearchRequest;
import com.ruoyi.dynamic.model.pojo.request.app.AppRoomWishCloseRequest;

import java.util.List;

/**
 * <p>
 * 房间互动挑战 服务类
 * </p>
 *
 * @author Gnc
 * @since 2025-01-13
 */
public interface IRoomInteractService extends IService<RoomInteract> {

    /**
     * 添加
     */
    boolean add(AppRoomInteractAddRequest request, Long userId);

    /**
     * 发起互动
     */
    boolean launch(AppRoomWishCloseRequest request, Long userId);

    /**
     * 结束互动
     */
    boolean over(AppRoomWishCloseRequest request, Long userId);

    /**
     * 列表
     */
    List<RoomInteract> listByRoomId(AppRoomUserSearchRequest request, Long userId);
}
